package com.tt.jshb.bean;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;

import java.util.List;

/**
 * Created by tu on 2018/7/22.
 */

public class RecycleHistoryBean extends BaseRep {

    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * endtimes : 2018-07-24
         * glf : 2
         * id : 10
         * jkje : 1000
         * jktimes : 2018-07-18
         * lx : 315
         * mark : 1
         * pp : 128
         * ts : 7
         * xh : iPhone 7
         */

        private String endtimes;
        private int id;
        private String jkje;
        private String jktimes;
        private String lx;
        private int mark;
        private String pp;
        private String xh;
        private String glf;
        private String xsf;
        private String ts;

        public String getXsf() {
            return xsf;
        }

        public void setXsf(String xsf) {
            this.xsf = xsf;
        }

        public String getEndtimes() {
            return TextUtils.isEmpty(endtimes) ? "" : endtimes;
        }

        public void setEndtimes(String endtimes) {
            this.endtimes = endtimes;
        }

        public String getGlf() {
            return glf;
        }

        public void setGlf(String glf) {
            this.glf = glf;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getJkje() {
            return jkje;
        }

        public void setJkje(String jkje) {
            this.jkje = jkje;
        }

        public String getJktimes() {
            return TextUtils.isEmpty(jktimes) ? "" : jktimes;
        }

        public void setJktimes(String jktimes) {
            this.jktimes = jktimes;
        }

        public String getLx() {
            return lx;
        }

        public void setLx(String lx) {
            this.lx = lx;
        }

        public int getMark() {
            return mark;
        }

        public void setMark(int mark) {
            this.mark = mark;
        }

        public String getPp() {
            return pp;
        }

        public void setPp(String pp) {
            this.pp = pp;
        }

        public String getTs() {
            return ts;
        }

        public void setTs(String ts) {
            this.ts = ts;
        }

        public String getXh() {
            return xh;
        }

        public void setXh(String xh) {
            this.xh = xh;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.endtimes);
            dest.writeInt(this.id);
            dest.writeString(this.jkje);
            dest.writeString(this.jktimes);
            dest.writeString(this.lx);
            dest.writeInt(this.mark);
            dest.writeString(this.pp);
            dest.writeString(this.xh);
            dest.writeString(this.glf);
            dest.writeString(this.xsf);
            dest.writeString(this.ts);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.endtimes = in.readString();
            this.id = in.readInt();
            this.jkje = in.readString();
            this.jktimes = in.readString();
            this.lx = in.readString();
            this.mark = in.readInt();
            this.pp = in.readString();
            this.xh = in.readString();
            this.glf = in.readString();
            this.xsf = in.readString();
            this.ts = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
